/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USERHANDLER_H__
#define __USERHANDLER_H__

#include <stdio.h>
#include <string.h>
#include "userCfg_far.h"
#include "userCfg_near.h"
#include "userCfgDefault.h"
#include "hal_rc8088.h"
#include "bsp_spi.h"
#define NUM_BYTE8  1
#define NUM_BYTE16  2
#define NUM_BYTE32  4
#define NUM_BYTE64  8
#define NUM_BYTE128  16

void RC8088_userInit(RC8088_RWCfg_st *pCfg);
void RC8088_userCfgLoop(RC8088_RWCfg_st *pCfg);

void WaitFPGA_MipiDone(RC8088_RWCfg_st *pCfg);
void send_ad_data_to_mipi(RC8088_RWCfg_st *pCfg,int frame_num);

int rf_skrl_init(uint8_t rf_index);
int rf_fmcw_send(int dev,int frame);

int rf_config_load(const char* filename, void* config);

// 8088操作接口变量
extern RC8088_RWCfg_st pCfg[SPI_NUM_MAX];

#endif /*__USERHANDLER_H__ */

/************************ (C) COPYRIGHT  *****END OF FILE****/























